gdk: Ignore crossings generated by passive grabs when resetting scroll axes
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 18 Nov 2013 21:12:18 +0000 (22:12 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 18 Nov 2013 21:12:18 +0000 (22:12 +0100)
commitfee754e0d22e5c8ab329278e8b836fbee1267100
tree1a76c4e90bd2c52bef9521df71d8549f0112e8e0
parent9127087e1c0e93f94552f0ad5170d4dfa785146a
gdk: Ignore crossings generated by passive grabs when resetting scroll axes

Passive grabs may take pointer focus out of the application, even though
the pointer didn't leave the window, but those events still trigger resetting
of the scroll axes. This is most visible with compiz, and possibly other
reparenting WMs, where passive grabs happen on the WM-managed window that
is a parent of the application toplevel.

As it is not possible to have scrolling happening on the timespan a passive
grab takes action, it is entirely safe for GTK+ to assume none happened if
it gets a crossing event of that nature.

https://bugzilla.gnome.org/show_bug.cgi?id=699574#c33
gdk/x11/gdkdevicemanager-xi2.c